/*
 * An XML document type.
 * Localname: RootTestCase
 * Namespace: 
 * Java type: noNamespace.RootTestCaseDocument
 *
 * Automatically generated - do not modify.
 */
package noNamespace.impl;
/**
 * A document containing one RootTestCase(@) element.
 *
 * This is a complex type.
 */
public class RootTestCaseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements noNamespace.RootTestCaseDocument
{
    
    public RootTestCaseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ROOTTESTCASE$0 = 
        new javax.xml.namespace.QName("", "RootTestCase");
    
    
    /**
     * Gets the "RootTestCase" element
     */
    public noNamespace.RootTestCaseDocument.RootTestCase getRootTestCase()
    {
        synchronized (monitor())
        {
            check_orphaned();
            noNamespace.RootTestCaseDocument.RootTestCase target = null;
            target = (noNamespace.RootTestCaseDocument.RootTestCase)get_store().find_element_user(ROOTTESTCASE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "RootTestCase" element
     */
    public void setRootTestCase(noNamespace.RootTestCaseDocument.RootTestCase rootTestCase)
    {
        synchronized (monitor())
        {
            check_orphaned();
            noNamespace.RootTestCaseDocument.RootTestCase target = null;
            target = (noNamespace.RootTestCaseDocument.RootTestCase)get_store().find_element_user(ROOTTESTCASE$0, 0);
            if (target == null)
            {
                target = (noNamespace.RootTestCaseDocument.RootTestCase)get_store().add_element_user(ROOTTESTCASE$0);
            }
            target.set(rootTestCase);
        }
    }
    
    /**
     * Appends and returns a new empty "RootTestCase" element
     */
    public noNamespace.RootTestCaseDocument.RootTestCase addNewRootTestCase()
    {
        synchronized (monitor())
        {
            check_orphaned();
            noNamespace.RootTestCaseDocument.RootTestCase target = null;
            target = (noNamespace.RootTestCaseDocument.RootTestCase)get_store().add_element_user(ROOTTESTCASE$0);
            return target;
        }
    }
    /**
     * An XML RootTestCase(@).
     *
     * This is a complex type.
     */
    public static class RootTestCaseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements noNamespace.RootTestCaseDocument.RootTestCase
    {
        
        public RootTestCaseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TESTCASEDESCRIPTION$0 = 
            new javax.xml.namespace.QName("", "TestCaseDescription");
        private static final javax.xml.namespace.QName SAMPLECONTACT$2 = 
            new javax.xml.namespace.QName("", "SampleContact");
        private static final javax.xml.namespace.QName EMPLOYEEID$4 = 
            new javax.xml.namespace.QName("", "EmployeeId");
        
        
        /**
         * Gets the "TestCaseDescription" element
         */
        public java.lang.String getTestCaseDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TESTCASEDESCRIPTION$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "TestCaseDescription" element
         */
        public org.apache.xmlbeans.XmlString xgetTestCaseDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TESTCASEDESCRIPTION$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "TestCaseDescription" element
         */
        public void setTestCaseDescription(java.lang.String testCaseDescription)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TESTCASEDESCRIPTION$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TESTCASEDESCRIPTION$0);
                }
                target.setStringValue(testCaseDescription);
            }
        }
        
        /**
         * Sets (as xml) the "TestCaseDescription" element
         */
        public void xsetTestCaseDescription(org.apache.xmlbeans.XmlString testCaseDescription)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TESTCASEDESCRIPTION$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TESTCASEDESCRIPTION$0);
                }
                target.set(testCaseDescription);
            }
        }
        
        /**
         * Gets the "SampleContact" element
         */
        public noNamespace.SampleContact getSampleContact()
        {
            synchronized (monitor())
            {
                check_orphaned();
                noNamespace.SampleContact target = null;
                target = (noNamespace.SampleContact)get_store().find_element_user(SAMPLECONTACT$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "SampleContact" element
         */
        public void setSampleContact(noNamespace.SampleContact sampleContact)
        {
            synchronized (monitor())
            {
                check_orphaned();
                noNamespace.SampleContact target = null;
                target = (noNamespace.SampleContact)get_store().find_element_user(SAMPLECONTACT$2, 0);
                if (target == null)
                {
                    target = (noNamespace.SampleContact)get_store().add_element_user(SAMPLECONTACT$2);
                }
                target.set(sampleContact);
            }
        }
        
        /**
         * Appends and returns a new empty "SampleContact" element
         */
        public noNamespace.SampleContact addNewSampleContact()
        {
            synchronized (monitor())
            {
                check_orphaned();
                noNamespace.SampleContact target = null;
                target = (noNamespace.SampleContact)get_store().add_element_user(SAMPLECONTACT$2);
                return target;
            }
        }
        
        /**
         * Gets the "EmployeeId" element
         */
        public java.lang.String getEmployeeId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EMPLOYEEID$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "EmployeeId" element
         */
        public org.apache.xmlbeans.XmlString xgetEmployeeId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EMPLOYEEID$4, 0);
                return target;
            }
        }
        
        /**
         * Sets the "EmployeeId" element
         */
        public void setEmployeeId(java.lang.String employeeId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EMPLOYEEID$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EMPLOYEEID$4);
                }
                target.setStringValue(employeeId);
            }
        }
        
        /**
         * Sets (as xml) the "EmployeeId" element
         */
        public void xsetEmployeeId(org.apache.xmlbeans.XmlString employeeId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EMPLOYEEID$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(EMPLOYEEID$4);
                }
                target.set(employeeId);
            }
        }
    }
}
